Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Media Samples


GetMediaSampleCount

The GetMediaSampleCount function allows you to determine the number of samples in a media.

pascal long GetMediaSampleCount (Media theMedia);
theMedia
Specifies the media for this operation. You obtain this media identifier from such Movie Toolbox functions as NewTrackMedia and GetTrackMedia (described on page 2-138 and page 2-190, respectively).
DESCRIPTION
The GetMediaSampleCount function returns a long integer that contains the number of samples in the specified media. Note that this number does not necessarily correspond to the number of samples used in the track that contains the media. Some samples in the media may not be used in the track, and others may be used more than once.

ERROR CODES
invalidMedia-2008This media is corrupted or invalid

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996